package game.johan.angelsdestiny;

import game.johan.angelsdestiny.R;
import game.johan.angelsdestiny.R.id;
import game.johan.angelsdestiny.R.layout;
import game.johan.angelsdestiny.R.menu;

import android.os.Bundle;
import android.app.Activity;
import android.graphics.Canvas;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;

public class MainActivity extends Activity {

	AngelsDestinyBase _base;
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        _base = (AngelsDestinyBase)findViewById(R.id.SurfaceView01);
        _base.setOnClickListener(new OnClickListener() {
        
			@Override
			public void onClick(View view) {
				// TODO Auto-generated method stub
				
			}
        });
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }

    protected void onDraw(Canvas canvas)
    {
            _base.render(canvas);
    }
   
    
}
